import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant';
import store from './store';
import 'vant/lib/index.css';

Vue.use(Vant);

// 图片前缀
// 判断环境 development production
if(process.env.NODE_ENV==="development"){
  Vue.prototype.$pre = "http://localhost:2000"
}else{
  Vue.prototype.$pre = ""
}

import "animate.css"

import "./assets/css/reset.css"
import "./assets/css/iconfont.css"

import "./assets/js/rem"

// 过滤器引入
import "./filters"

Vue.config.productionTip = false

// 全局组件引入
import { CommonComponent } from "./components";
Vue.use(CommonComponent);

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
